set SPAdminTool=%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe

@ECHO OFF
echo Uninstalling the Sharepoint DatePicker Solution.....
ECHO.
Assemblies\sleep.exe 1
ECHO Uninstalling the Date Picker Cabinet....
ECHO. --- retracting the solution ---
"%SPAdminTool%" -o retractsolution -name SharepointDatePicker.wsp -immediate -url %1
"%SPAdminTool%" -o execadmsvcjobs
ECHO. --- deleting the solution ---
"%SPAdminTool%" -o deletesolution -name SharepointDatePicker.wsp -override
ECHO.
ECHO.
pause
echo Doing an IIS Reset...
popd
iisreset